<!DOCTYPE html>
<html>
<head>
    <title>Graphics Test</title>
    <style>
        body {
            padding: 15px;
        }

        html, body, #canvas {
            height: 100%;
            margin: 0px;
            box-sizing: border-box;
        }

        html, #canvas {
            padding: 0px;
        }

        #canvas {
            width: 100%;
            border: 1px solid #000;
        }
    </style>
    <script src="/js/sylvester.js"></script>
    <script src="/js/glUtils.js"></script>
    <script src="/js/graphics.js"></script>
    <script id="shader-fs" type="x-shader/x-fragment">
        varying lowp vec4 vColor;

        void main(void) {
        gl_FragColor = vColor;
        }
    </script>
    <script id="shader-vs" type="x-shader/x-vertex">
        attribute vec3 aVertexPosition;
        attribute vec4 aVertexColor;

        uniform mat4 uMVMatrix;
        uniform mat4 uPMatrix;

        varying lowp vec4 vColor;

        void main(void) {
        gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);
        vColor = aVertexColor;
        }
    </script>
</head>
<body onload="start()">
    <canvas id="glcanvas" width="640" height="480">
        Your browser doesn't appear to support the HTML5 <code>&lt;canvas&gt;</code> element.
    </canvas>
</body>
</html>